<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>flask 文件管理：主页</title>
</head>
<body>
<h3><a href="/upload">上传新文件</a></h3>
<table style="width:90%;">

    <tr><td>文件路径</td>
        <td>st_size</td>
        <td>最近一次修改时间</td>
        <td>下载地址</td>
        <td>动作</td></tr>
   {% for item in items %}
    <tr>
        <td>{{item.filename}}</td>
        <td>{{item.st_size}}</td>
        <td>{{item.st_mtime_date}}</td>
        <td><a href="#">http://ip:port/download?filename={{item.filename}}</a></td>
        <td><a href="/download?filename={{item.filename}}">下载</a></td>

    </tr>
   {% endfor %}
</table>


</body>
</html>